<?php
class Staff_model extends CI_Model{
	function validate($user, $pass){
		$valid = $this->db->get_where('staffs', array('username'=>$user, 'password'=>$pass));
		if($valid->num_rows() == 1){
			return $valid->row();
		}
		else{
			return FALSE;
		}
	}

}